package com.itheima.reflect;

import org.junit.Test;

public class Test5Frame {

    @Test
    public void save() throws Exception {
        Student1 s1=new Student1("hover",18,'男',175,"算法");
        Teacher t1 = new Teacher("夏化羽", 9999);


        //需要，把任意对象的字段名和其对应的值等信息， 保存到文件中去
        ObjectFrame.saveObject(s1);
        ObjectFrame.saveObject(t1);
    }
}
